package com.example.demo.Serve.child;

import com.example.demo.Dao.MysqlDao;
import com.example.demo.Serve.MysqlGetServe;
import com.example.demo.privateObj.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class GetServe implements MysqlGetServe {
    @Autowired
    private MysqlDao mysqlDao;
    @Override
    public List<User> GetSelectServe(String name) {
        return mysqlDao.GetAllDate(name);
    }

}
